package com.bw.user_module.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.bw.user_module.user.UserEntity;
import com.bw.user_module.user.UserValueEntity;

import java.util.List;

import io.reactivex.Maybe;

@Dao
public interface UserDao {

    @Query("select * from UserValueEntity")
    Maybe<List<UserValueEntity>>queryUser();

    @Insert
    void insertUser(UserValueEntity entity);

    @Query("delete from UserValueEntity")
    void delUser();

    @Update
    void updateUser(UserValueEntity entity);

}
